Repository navigation
id(world_manifest): apply() re-checks schedule time/cap, profile, module hash (#4769) - #4774
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 59 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. CodeRabbit Verify
|
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
Codex disposition for task 6773: the Codex code-review run on head b04ea88 failed on the Codex side ("We couldn't complete this review" — usage limits reached, per the review summary). Ground-truth check: this PR has zero inline review comments from |
Fixes #4769 · queue task 6773
world_manifest::apply()documented itself as a defensive re-check but only re-validated grants/ceiling names and schedule ids. This adds the missing re-checks in the style ofWorldManifest::validate():ScheduleAt: refusesat_ms == 0(naming the schedule id) and refuses a new schedule that would push state pastMAX_PENDING_SCHEDULES(64); replacing an existing schedule at the cap still folds.SetProfile: runsWorldExecutionProfile::validate().InstallModule: refuses a hash that is not 1..=64 hex digits, using the same message asvalidate().No change to
plan()orvalidate(); valid step lists fold exactly as before.Regression tests beside the existing
world_manifesttests cover each refusal (including that refused values are not stored) plus the at-cap replacement and valid-hash fold cases.Tests:
cargo test --lib world_manifestinpkgs/idon the laptop: 29 passed, 0 failed (two verified full-log runs), including the 4 new refusal tests.Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.